package cn.edu.scau.cmi.chenxiaoqin.singleton;

public class Marshal {
		private static Marshal[] instance=new Marshal[10];
		private String name;
		private static int number=0;
		private Marshal(String name) {
			this.name=name;
		}
		public static Marshal[] getInstanece(String name) {
			if(number<10) {
				instance[number]=new Marshal(name);
				number++;
			}
			return instance;
		}
		public String getName(){
			return this.name;
		}
}